#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

bool findTriangle(vector<int>& v)
{
    sort(v.begin(), v.end());
    if ((v[0] + v[1] > v[2] && v[3] + v[4] > v[5]) ||
        (v[0] + v[2] > v[3] && v[1] + v[4] > v[5]) ||
        (v[0] + v[3] > v[4] && v[1] + v[2] > v[5]) ||
        (v[0] + v[4] > v[5] && v[1] + v[2] > v[3]))
        return true;
    else
        return false;
}

int main()
{
    int t;
    cin >> t;
    vector<int> v(6);

    while (t--)
    {
        for (int i = 0; i < 6; i++)
        {
            cin >> v[i];
        }

        bool result = findTriangle(v);
        if (result)
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
}